<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Relations\BelongsTo;

class SpecModel extends RbhBaseModel
{
  protected $table = 'df_specs';

  protected $guarded = [];

  /**
   * 关联商品主图表
   * @return BelongsTo
   */
  public function goods(): BelongsTo
  {
    return $this->belongsTo(GoodsPicPrimaryModel::class, 'goods_id', 'ID');
  }
}
